import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'

// 引入路由 
import router from "@/router"

//引入vuex
import store from "@/store"

//引入图标及组件
import * as ElementPlusIconsVue from "@element-plus/icons-vue"
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) { app.component(key, component) }

//挂载路由
app.use(router)
//挂载vuex
app.use(store)
app.mount('#app')